package com.itheima.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.itheima.server.domain.Clue;
import com.itheima.server.dto.ReportClueDto;
import com.itheima.server.vo.IndexCluDragonTigerVo;
import com.itheima.server.vo.ReportClueVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface ClueMapper extends BaseMapper<Clue> {

    Page<ReportClueVo> reportClueList(ReportClueDto dto);

    @MapKey("id")
    List<Map<String,Object>> chanelStatistics(
            @Param("beginTime") String beginTime,
            @Param("endTime") String endTime);

    List<IndexCluDragonTigerVo> getCluDragonTiger(@Param("begin") LocalDate begin, @Param("end") LocalDate end);
}
